var express = require('express');
var db = require("./sql");
var app = express();
var bodyParser = require('body-parser');
var ejs = require('ejs');
var loader = require('loader-utils');
app.engine('html', ejs.__express);
app.set('views', 'mui_get_up/views');
app.set('views engine','html');

//呈现静态资源
app.use(express.static('mui_get_up/public'));

app.use(bodyParser.urlencoded({
   extended:false
}));
//设置首页路径
app.get('/list2',function (req,res) {
   res.render('list2')
});
app.listen(3000);
